package org.s45.erp.api;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@FeignClient(contextId = "remoteLogService",
        name = "jshERP-boot",
        path = "/jshERP-boot/api/log")
public interface RemoteLogService {

    @GetMapping("/insertLog")
    void insertLog(@RequestParam("moduleName") String moduleName,
                   @RequestParam("content") String content,
                   @RequestParam("request") HttpServletRequest request);

}
